|
Public Types
|
enum |
ChannelType {
uChar = 0,
uShort = 1,
sHalf = 2,
sFloat = 3,
sChar = 4,
sShort = 5,
uInt = 6,
sInt = 7,
sDouble = 8
} |
|
Describe the data type of a single channel
of a pixel. More...
|
enum |
MemoryChannelOrder
{
orderNONE = 0,
orderRGBA = 1,
orderABGR = 2,
orderBGRA =
3,
orderARGB = 4,
orderRGB = 5,
orderBGR =
6
} |
|
Describe channel ordering for 4 channel
images -- these are the order of the channels in memory, not in
registers or uInts. More...
|
Public Member Functions
|
|
PixelDescriptor
(char cCount, ChannelType
channelType, MemoryChannelOrder
channelOrder, bool PreMultiplied) |
int |
channelSize ()
const |
|
return the size of a pixel channel in bytes
|
int |
channelBitSize ()
const |
|
return the size of a pixel channel in bits
|
int |
pixelSize ()
const |
|
return the size of a pixel in bytes
|
int |
pixelBitSize ()
const |
|
return the size of a pixel in bits
|
ChannelType |
channelType ()
const |
|
Get the channel type of the image/pixel.
|
MemoryChannelOrder |
channelOrder ()
const |
|
Get the channel ordering of the image/pixel.
|
bool |
premultiplied ()
const |
|
returns true if the RGB values are
premultiplied by the A values, false otherwise.
|
int |
channelCount ()
const |
|
return the number of channels -- 1, 3, or 4
|
bool |
operator== (const
PixelDescriptor
&pd) const |
|
returns true if the pixel descriptors are
equal
|
Protected Attributes
|
char |
m_cCount |
|
number of channels in the image -- 1, 3, or
4
|
ChannelType |
m_channelType |
|
Channel type.
|
MemoryChannelOrder |
m_channelOrder |
|
channel ordering
|
bool |
m_PreMultiplied |
|
true if RGB is premultiplied by A
|
mudbox::PixelDescriptor
mudbox::PixelDescriptor mudbox::PixelDescriptor
mudbox::PixelDescriptor mudbox::PixelDescriptor
mudbox::PixelDescriptor mudbox::PixelDescriptor
mudbox::PixelDescriptor mudbox::PixelDescriptor
mudbox::PixelDescriptor
mudbox::PixelDescriptor
mudbox::PixelDescriptor mudbox::PixelDescriptor
mudbox::PixelDescriptor mudbox::PixelDescriptor
mudbox::PixelDescriptor mudbox::PixelDescriptor
mudbox::PixelDescriptor mudbox::PixelDescriptor
mudbox::PixelDescriptor